<template>
  <el-row>
    <el-switch
        v-model="openFlag"
        active-text="开启后，此会员新的订单将不再加成长值，历史订单退货依然会扣减"
        active-color="#13ce66"
        style="margin: 10px 10px"
        @click="click"
    >
    </el-switch>
  </el-row>
</template>

<script setup>
import {ref} from "vue";

const openFlag = ref(true)
const loading = ref(false)

const changeSwitch = (val) => {
  console.log(val)
  return
}

const click = () => {
  console.log('click之前：' + openFlag.value)
  openFlag.value = openFlag.value ? false : true;
  console.log('click之后：' + openFlag.value)
}
</script>

<style scoped>

</style>